package com.resource.project.mapper;

import com.resource.project.entity.system.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author resource
 * @since 2020-03-14
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> getRolesByHrId(@Param("id") Long id);
    List<Role> roles();

    int addNewRole(@Param("role") String role, @Param("roleZh") String roleZh);

    int deleteRoleById(Long rid);
}
